<?php
/**
 * Created by : PhpStorm
 * User: DuFei
 * Date: 2020/7/30
 * Time: 15:17
 */

namespace app\models\response;




use app\models\BaseDto;

class RespMenuDetail extends BaseDto
{
    private $pageSize;
    private $pageNum;
    private $menuId;
    private $parentId;
    private $name;
    private $url;
    private $perms;
    private $type;
    private $icon;
    private $orderNum;

    /**
     * @return mixed
     */
    public function getPageSize()
    {
        return $this->pageSize;
    }

    /**
     * @param mixed $pageSize
     */
    public function setPageSize($pageSize)
    {
        $this->pageSize = $pageSize;
    }

    /**
     * @return mixed
     */
    public function getPageNum()
    {
        return $this->pageNum;
    }

    /**
     * @param mixed $pageNum
     */
    public function setPageNum($pageNum)
    {
        $this->pageNum = $pageNum;
    }

    /**
     * @return mixed
     */
    public function getMenuId()
    {
        return $this->menuId;
    }

    /**
     * @param mixed $menuId
     */
    public function setMenuId($menuId)
    {
        $this->menuId = $menuId;
    }

    /**
     * @return mixed
     */
    public function getParentId()
    {
        return $this->parentId;
    }

    /**
     * @param mixed $parentId
     */
    public function setParentId($parentId)
    {
        $this->parentId = $parentId;
    }

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param mixed $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @return mixed
     */
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * @param mixed $url
     */
    public function setUrl($url)
    {
        $this->url = $url;
    }

    /**
     * @return mixed
     */
    public function getPerms()
    {
        return $this->perms;
    }

    /**
     * @param mixed $perms
     */
    public function setPerms($perms)
    {
        $this->perms = $perms;
    }

    /**
     * @return mixed
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * @param mixed $type
     */
    public function setType($type)
    {
        $this->type = $type;
    }

    /**
     * @return mixed
     */
    public function getIcon()
    {
        return $this->icon;
    }

    /**
     * @param mixed $icon
     */
    public function setIcon($icon)
    {
        $this->icon = $icon;
    }

    /**
     * @return mixed
     */
    public function getOrderNum()
    {
        return $this->orderNum;
    }

    /**
     * @param mixed $orderNum
     */
    public function setOrderNum($orderNum)
    {
        $this->orderNum = $orderNum;
    }

    public function jsonSerialize()
    {
        return [
            "pageSize"=>$this->getPageSize(),
                "pageNum"=>$this->getPageNum(),
                "menuId"=>(string)$this->getMenuId(),
                "parentId"=>(string)$this->getParentId(),
                "name"=>$this->getName(),
                "url"=>$this->getUrl(),
                "perms"=>$this->getPerms(),
                "type"=>$this->getType(),
                "icon"=>$this->getIcon(),
                "orderNum"=>$this->getOrderNum(),
        ];
    }


}
